﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity.ProjectEnt;

namespace Logic.Map.Project
{
    public class PersonSalaryMap : EntityTypeConfiguration<PersonalSalaryEntity>
    {
        public PersonSalaryMap()
        {
            this.ToTable("PersonSalary");
            this.HasKey(t => t.F_Id);
            Property(p => p.F_CreatorUserId).HasMaxLength(50);
            Property(p => p.F_LastModifyUserId).HasMaxLength(50);
            Property(p => p.F_DeleteUserId).HasMaxLength(50);

            Property(p => p.Weight).HasPrecision(18, 2);
            Property(p => p.EveryTimeSalary).HasPrecision(18, 2);
            Property(p => p.BeforeOperationSalary).HasPrecision(18, 2);
            Property(p => p.AfterOperationSalary).HasPrecision(18, 2);


        }
    }
}
